package com.ymm.lulutong.translator;

import com.ymm.lulutong.request.CargoDefinePriceWebRequest;
import com.ymm.system.api.dto.CargoPriceRequest;

public class RequestTranslator {
    public static CargoPriceRequest CargoDefinePriceWebRequest2CargoPriceRequest(CargoDefinePriceWebRequest cargoDefinePriceWebRequest) {
        CargoPriceRequest cargoPriceRequest = new CargoPriceRequest();
        cargoPriceRequest.setCargoSrcLat(cargoDefinePriceWebRequest.getCargoSrcLat());
        cargoPriceRequest.setCargoSrcLon(cargoDefinePriceWebRequest.getCargoSrcLon());
        cargoPriceRequest.setCargoDesLat(cargoDefinePriceWebRequest.getCargoDesLat());
        cargoPriceRequest.setCargoDesLon(cargoDefinePriceWebRequest.getCargoDesLon());
        cargoPriceRequest.setCargoDeliveryTime(cargoDefinePriceWebRequest.getCargoDeliveryTime());
        cargoPriceRequest.setCargoRequireType(cargoDefinePriceWebRequest.getCargoRequireType());
        cargoPriceRequest.setCity(cargoDefinePriceWebRequest.getCity());
        return cargoPriceRequest;
    }
}
